package com.sky.mapper;

import com.sky.entity.OrderDetail;
import com.sky.vo.OrderVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface OrderDetailMapper {


    /**
     * 批量插入订单明细数据
     * @param  orderDetails
     */
    void insertBatch(List<OrderDetail>  orderDetails);

    /**
     * 根据订单id查询订单详情
     * @param ordersId
     * @return
     */
    List<OrderDetail> getByOrderId(Long ordersId);

    /**
     * 查询订单详情
     * @param id
     * @return
     */
    OrderVO detail(Long id);
}
